<!-- 加载玩法列表模板 -->
<script type="text/html" id="proxy-template">
<thead>
	 <tr>
        <th>用户ID</th>
		<th>登录名</th>
		<th>用户类型</th>
		<th>返点</th> 
		<th>余额</th>
		<th>账号类型</th>
		<th>状态</th>
		<th>在线</th>
		<th>QQ</th>
		<th>注册时间</th>
		<th>操作</th>
	</tr>
</thead>
<tbody id="proxy-data">
	
</tbody>
</script>
<script type="text/html" id="proxy-z-template">
	<%_.each(items,function(item,index) {%>
		<tr data-uid="<%=item.id%>">
            <td><%=item.uid%></td>
			<td><%=item.userName%></td>
			<td style="text-align:center">
				<%if(item.userType==0){%>代理<%}%>
				<%if(item.userType==1){%>会员<%}%> 
			</td>
			<td><%=(item.fanDian*100).toFixed(2) %></td>
            <td><%=item.coin.toFixed(2) %></td>
			<td style="text-align:center"> 
                <%if(item.virtualAccount==0){%>----<%}else{%>虚拟账户<% }%> 
            </td>
            <td> 
                <%if(item.status==0){%>正常<%}else{%>停用<% }%> 
            </td>
			<td>
                <%if(item.isOnline==0){%>在线<%}else{%>离线<% }%> 
            </td>
			<td><%=item.userQq %></td> 
			<td><%=item.registerDate%></td>
			<td>
				<%if(item.isSelf=='N'){%><a data-modify-user >修改</a>&nbsp;<%}%>
                <%if(item.isSelf=='N'&&item.isCharge=='Y'){%><a data-charge-user >充值</a>&nbsp;<%}%>
				<a data-flag="next-level">查看下级</a>
			</td>
		</tr>
	<%})%>
</script>
<script type="text/html" id="proxy-z-empty-template">
<tr data-flag="empty">
	<td  colspan="9" style="text-align:center;">暂无下级查询记录。</td>
</tr>
</script>
<script type="text/html" id="charge-table-template">
<table width="100%" id="vip_charge_table" class="tab-list stripe mt10">
		<tr>
			<td  style="text-align: right">上级关系：</td>
			<td style="text-align: left"><%=relation%></td>
		</tr>
		<tr>
			<td  style="text-align: right">用户名：</td>
			<td style="text-align: left"><%=username%></td>
		</tr>
		<tr>
			<td  style="text-align: right">用户余额：</td>
			<td style="text-align: left"><%=coin%></td>
		</tr>
		<tr>
			<td  style="text-align: right">余额：</td>
			<td style="text-align: left"> <span style="color:red;"><%=userCoin%></span></td>
		</tr>
          <tr>
			<td  style="text-align: right">资金密码：</td>
			<td style="text-align: left">
                <input id="proxy-coin-password" type="password"/>
			</td>
		</tr>
		<tr>
			<td  style="text-align: right">充值金额：</td>
			<td style="text-align: left">
                     <div style="margin-top:10px;margin-bottom:0px;">
                     <input id="proxy-charge-inp" />
			<p>请认真核对充值金额，只能充值1-10000元</p>
			</div></td>
		</tr>
      
</table>
</script> 
<script type="text/html" id="update-user-template">
<table width="100%" id="update_user_table" class="tab-list stripe mt10">
		<tr>
			<td style="text-align:right">上级关系:</td>
			<td style="text-align:left"><%=relation%></td>
		</tr>
		<tr>
			<td style="text-align:right">用户名:</td>
			<td style="text-align:left"><%=username%></td>
		</tr>
        <tr>
			<td style="text-align:right">用户ID:</td>
			<td style="text-align:left"><%=uid%></td>
		</tr>
		<tr>
			<td style="text-align:right">会员类型:</td>
			<td style="text-align:left">
               <input type="hidden" name="id" value="<%=id%>">
               <input name="userType" value="0" type="radio"  <%if(userType==0){%>checked<%}%> >代理 
               <input name="userType" value="1" type="radio"  <%if(userType==1){%>checked<%}%> >会员
            </td>
		</tr>
		<tr>
			<td style="text-align:right">返点:</td>
			<td style="text-align:left"> 
                 <select name="fandian" style="width:100px"> 
                     <% for(var i=maxRebate;i>=minRebate/100-dc;i-=dc) { %>
                      <option value='<%=Math.abs(i*100).toFixed(1)%>'
                      <%if(parseInt(i*1000)==parseInt(fanDian*1000)){%>selected<%}%>
                      ><%=Math.abs(i*100).toFixed(1)%>% </option>
                     <%}%>
                  </select>
            </td>
		</tr>
		<tr>
			<td style="text-align:right">注册时间:</td>
			<td style="text-align:left"><%=registerDate%></td>
		</tr>
</table>
</script>